package com.hsl.housaileibot001.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 提交答题记录DTO
 */
@Data
@Schema(description = "提交答题记录DTO")
public class PracticeRecordDTO {

    /**
     * 题目ID
     */
    @NotBlank(message = "题目ID不能为空")
    @Schema(description = "题目ID", required = true)
    private String questionId;

    /**
     * 面试题ID
     */
    @Schema(description = "面试题ID")
    private Long interviewQuestionId;

    /**
     * 用户答案
     */
    @NotBlank(message = "用户答案不能为空")
    @Schema(description = "用户答案", required = true)
    private String userAnswer;

    /**
     * 是否正确
     */
    @NotNull(message = "是否正确不能为空")
    @Schema(description = "是否正确", required = true)
    private Boolean isCorrect;
}

